package com.poetize.plus.properties;

import com.poetize.plus.enums.QiNiuAddressEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * @author zuosy
 * @created 2024/4/1 10:43
 */
@Data
@Component
@Validated
@ConfigurationProperties("qi-niu")
public class QiNiuProperties {

    /**
     * 是否开启七牛云
     */
    private final Boolean enable = true;

    /**
     * ak
     */
    private String accessKey;

    /**
     * sk
     */
    private String secretKey;

    /**
     * 空间名
     */
    private String bucket;

    /**
     * 下载地址
     */
    private String downloadUrl;

    /**
     * 七牛云服务器地址
     */
    private QiNiuAddressEnum address;
}
